package com.project.m.api.busi.db.repo.distributor;

import com.project.m.api.busi.db.entity.hicatcard.distributor.TDistributorPerson;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface DistributorPersonRepo extends JpaRepository<TDistributorPerson, Long>, JpaSpecificationExecutor<TDistributorPerson> {

    List<TDistributorPerson> findByUserIdAndEnableOrderByCreateTimeDesc(Long userId, Boolean enable);
}
